﻿using System.Text;

namespace ChangeLog.CommunityToolkit.Models;

internal class ChangeLog
{
    public string Title => "更新日志";
    public List<ReleaseVersion> ReleaseVersions { get; set; } = new ();

    public override string ToString()
    {
        var content = new StringBuilder();
        ReleaseVersions.ForEach(r =>
        {
            content.Append(r.ToString());
        });
        return $@"# {Title}

{content.ToString()}

";
    }
}